USHIFT-6765: Add automatic restart and approval options to Claud prow-PR script#6428
Conversation
|
Skipping CI for Draft Pull Request. |
|
@ggiguash: This pull request references USHIFT-6765 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds two new CLI modes to the Prow job management script: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@ggiguash: This pull request references USHIFT-6765 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@coderabbitai perform full review |
|
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/scripts/microshift-prow-jobs-for-pull-requests.sh:
- Around line 291-301: The script appends "/test ${short_name}" to the comment
even when short_name is empty, creating malformed commands; update the loop that
builds comment (the block using short_name and comment variables where
short_name is populated from jq and sed) to skip adding a `/test` line when
short_name is empty or only whitespace (e.g., check short_name after trimming
and only append when non-empty), leaving the existing trailing-newline removal
and gh pr comment call unchanged.
- Around line 216-238: The approval logic currently trusts whatever result files
exist in tmpdir, allowing undercounting when fetches fail; update the flow so
fetch_pr_results communicates failures (e.g., return non-zero or write a failure
marker) and the caller checks that before counting results: call
fetch_pr_results "${pr_number}" "${tmpdir}" and if it exits non-zero or a
fetch-failed marker exists, log "PR #${pr_number}: incomplete job results,
skipping" and continue instead of computing total/success; ensure the variables
and checks around tmpdir, total, success, and the loop that reads files are only
executed when fetch_pr_results succeeded.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 1a04f11e-884a-482c-88f8-2166e4619f81
📒 Files selected for processing (1)
.claude/scripts/microshift-prow-jobs-for-pull-requests.sh
|
@ggiguash: This pull request references USHIFT-6765 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@ggiguash: This pull request references USHIFT-6765 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by @ggiguash |
|
@ggiguash: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@ggiguash: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eslutsky, ggiguash The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Scope
Testing